import 'package:xin_he/generated/json/base/json_convert_content.dart';
import 'package:xin_he/page/adopt/model/xin_he_adopt_tree_record_model_entity.dart';

XinHeAdoptTreeRecordModelEntity $XinHeAdoptTreeRecordModelEntityFromJson(Map<String, dynamic> json) {
	final XinHeAdoptTreeRecordModelEntity xinHeAdoptTreeRecordModelEntity = XinHeAdoptTreeRecordModelEntity();
	final int? additionalYunChaSeed = jsonConvert.convert<int>(json['additionalYunChaSeed']);
	if (additionalYunChaSeed != null) {
		xinHeAdoptTreeRecordModelEntity.additionalYunChaSeed = additionalYunChaSeed;
	}
	final int? adoptedYear = jsonConvert.convert<int>(json['adoptedYear']);
	if (adoptedYear != null) {
		xinHeAdoptTreeRecordModelEntity.adoptedYear = adoptedYear;
	}
	final int? amount = jsonConvert.convert<int>(json['amount']);
	if (amount != null) {
		xinHeAdoptTreeRecordModelEntity.amount = amount;
	}
	final String? buyerRemark = jsonConvert.convert<String>(json['buyerRemark']);
	if (buyerRemark != null) {
		xinHeAdoptTreeRecordModelEntity.buyerRemark = buyerRemark;
	}
	final String? code = jsonConvert.convert<String>(json['code']);
	if (code != null) {
		xinHeAdoptTreeRecordModelEntity.code = code;
	}
	final int? consumerGoldRedEnvelope = jsonConvert.convert<int>(json['consumerGoldRedEnvelope']);
	if (consumerGoldRedEnvelope != null) {
		xinHeAdoptTreeRecordModelEntity.consumerGoldRedEnvelope = consumerGoldRedEnvelope;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		xinHeAdoptTreeRecordModelEntity.createTime = createTime;
	}
	final String? endTime = jsonConvert.convert<String>(json['endTime']);
	if (endTime != null) {
		xinHeAdoptTreeRecordModelEntity.endTime = endTime;
	}
	final int? fAdoptedTreeId = jsonConvert.convert<int>(json['fAdoptedTreeId']);
	if (fAdoptedTreeId != null) {
		xinHeAdoptTreeRecordModelEntity.fAdoptedTreeId = fAdoptedTreeId;
	}
	final int? fUserId = jsonConvert.convert<int>(json['fUserId']);
	if (fUserId != null) {
		xinHeAdoptTreeRecordModelEntity.fUserId = fUserId;
	}
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		xinHeAdoptTreeRecordModelEntity.id = id;
	}
	final int? isGive = jsonConvert.convert<int>(json['isGive']);
	if (isGive != null) {
		xinHeAdoptTreeRecordModelEntity.isGive = isGive;
	}
	final String? memberCode = jsonConvert.convert<String>(json['memberCode']);
	if (memberCode != null) {
		xinHeAdoptTreeRecordModelEntity.memberCode = memberCode;
	}
	final String? mobile = jsonConvert.convert<String>(json['mobile']);
	if (mobile != null) {
		xinHeAdoptTreeRecordModelEntity.mobile = mobile;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		xinHeAdoptTreeRecordModelEntity.name = name;
	}
	final int? opexManagerFee = jsonConvert.convert<int>(json['opexManagerFee']);
	if (opexManagerFee != null) {
		xinHeAdoptTreeRecordModelEntity.opexManagerFee = opexManagerFee;
	}
	final int? orderConsumerGoldRedEnvelope = jsonConvert.convert<int>(json['orderConsumerGoldRedEnvelope']);
	if (orderConsumerGoldRedEnvelope != null) {
		xinHeAdoptTreeRecordModelEntity.orderConsumerGoldRedEnvelope = orderConsumerGoldRedEnvelope;
	}
	final int? orderFee = jsonConvert.convert<int>(json['orderFee']);
	if (orderFee != null) {
		xinHeAdoptTreeRecordModelEntity.orderFee = orderFee;
	}
	final int? orderTeaOilCard = jsonConvert.convert<int>(json['orderTeaOilCard']);
	if (orderTeaOilCard != null) {
		xinHeAdoptTreeRecordModelEntity.orderTeaOilCard = orderTeaOilCard;
	}
	final int? orderYunChaSeed = jsonConvert.convert<int>(json['orderYunChaSeed']);
	if (orderYunChaSeed != null) {
		xinHeAdoptTreeRecordModelEntity.orderYunChaSeed = orderYunChaSeed;
	}
	final String? parentCode = jsonConvert.convert<String>(json['parentCode']);
	if (parentCode != null) {
		xinHeAdoptTreeRecordModelEntity.parentCode = parentCode;
	}
	final String? parentName = jsonConvert.convert<String>(json['parentName']);
	if (parentName != null) {
		xinHeAdoptTreeRecordModelEntity.parentName = parentName;
	}
	final String? payChannel = jsonConvert.convert<String>(json['payChannel']);
	if (payChannel != null) {
		xinHeAdoptTreeRecordModelEntity.payChannel = payChannel;
	}
	final int? payFee = jsonConvert.convert<int>(json['payFee']);
	if (payFee != null) {
		xinHeAdoptTreeRecordModelEntity.payFee = payFee;
	}
	final String? payTime = jsonConvert.convert<String>(json['payTime']);
	if (payTime != null) {
		xinHeAdoptTreeRecordModelEntity.payTime = payTime;
	}
	final int? price = jsonConvert.convert<int>(json['price']);
	if (price != null) {
		xinHeAdoptTreeRecordModelEntity.price = price;
	}
	final String? remark = jsonConvert.convert<String>(json['remark']);
	if (remark != null) {
		xinHeAdoptTreeRecordModelEntity.remark = remark;
	}
	final String? rootName = jsonConvert.convert<String>(json['rootName']);
	if (rootName != null) {
		xinHeAdoptTreeRecordModelEntity.rootName = rootName;
	}
	final String? startTime = jsonConvert.convert<String>(json['startTime']);
	if (startTime != null) {
		xinHeAdoptTreeRecordModelEntity.startTime = startTime;
	}
	final String? status = jsonConvert.convert<String>(json['status']);
	if (status != null) {
		xinHeAdoptTreeRecordModelEntity.status = status;
	}
	final int? teaOilCard = jsonConvert.convert<int>(json['teaOilCard']);
	if (teaOilCard != null) {
		xinHeAdoptTreeRecordModelEntity.teaOilCard = teaOilCard;
	}
	final int? treeFee = jsonConvert.convert<int>(json['treeFee']);
	if (treeFee != null) {
		xinHeAdoptTreeRecordModelEntity.treeFee = treeFee;
	}
	final String? treeIconPath = jsonConvert.convert<String>(json['treeIconPath']);
	if (treeIconPath != null) {
		xinHeAdoptTreeRecordModelEntity.treeIconPath = treeIconPath;
	}
	final String? treeName = jsonConvert.convert<String>(json['treeName']);
	if (treeName != null) {
		xinHeAdoptTreeRecordModelEntity.treeName = treeName;
	}
	final int? yunChaSeed = jsonConvert.convert<int>(json['yunChaSeed']);
	if (yunChaSeed != null) {
		xinHeAdoptTreeRecordModelEntity.yunChaSeed = yunChaSeed;
	}
	return xinHeAdoptTreeRecordModelEntity;
}

Map<String, dynamic> $XinHeAdoptTreeRecordModelEntityToJson(XinHeAdoptTreeRecordModelEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['additionalYunChaSeed'] = entity.additionalYunChaSeed;
	data['adoptedYear'] = entity.adoptedYear;
	data['amount'] = entity.amount;
	data['buyerRemark'] = entity.buyerRemark;
	data['code'] = entity.code;
	data['consumerGoldRedEnvelope'] = entity.consumerGoldRedEnvelope;
	data['createTime'] = entity.createTime;
	data['endTime'] = entity.endTime;
	data['fAdoptedTreeId'] = entity.fAdoptedTreeId;
	data['fUserId'] = entity.fUserId;
	data['id'] = entity.id;
	data['isGive'] = entity.isGive;
	data['memberCode'] = entity.memberCode;
	data['mobile'] = entity.mobile;
	data['name'] = entity.name;
	data['opexManagerFee'] = entity.opexManagerFee;
	data['orderConsumerGoldRedEnvelope'] = entity.orderConsumerGoldRedEnvelope;
	data['orderFee'] = entity.orderFee;
	data['orderTeaOilCard'] = entity.orderTeaOilCard;
	data['orderYunChaSeed'] = entity.orderYunChaSeed;
	data['parentCode'] = entity.parentCode;
	data['parentName'] = entity.parentName;
	data['payChannel'] = entity.payChannel;
	data['payFee'] = entity.payFee;
	data['payTime'] = entity.payTime;
	data['price'] = entity.price;
	data['remark'] = entity.remark;
	data['rootName'] = entity.rootName;
	data['startTime'] = entity.startTime;
	data['status'] = entity.status;
	data['teaOilCard'] = entity.teaOilCard;
	data['treeFee'] = entity.treeFee;
	data['treeIconPath'] = entity.treeIconPath;
	data['treeName'] = entity.treeName;
	data['yunChaSeed'] = entity.yunChaSeed;
	return data;
}